//
//  JCBusinessCardContent.swift
//  JChat
//
//  Created by JIGUANG on 2017/8/31.
//  Copyright © 2017年 HXHG. All rights reserved.
//

import UIKit

class JCMessageTaskContent: NSObject, JCMessageContentType {

    public weak var delegate: JCMessageDelegate?
    open var layoutMargins: UIEdgeInsets = .zero
    
    open class var viewType: JCMessageContentViewType.Type {
        return JCMessageTaskContentView.self
    }
    
    public init(_ extras: Dictionary<String,Any>) {
        self.extras = extras
        super.init()
    }
    
    open var userName: String?
    open var appKey: String?
    
    open var extras: [String : Any]?
    
    open func sizeThatFits(_ size: CGSize) -> CGSize {
        return .init(width: 248, height: 94)
    }

}
